<template>
  <div>
    <el-form label-position="right" label-suffix="：" :model="data" ref="form">
      <el-row>
        <el-col :span="12">
          <el-form-item label="标题">
            <el-input class="inputStyle" v-model="data.title"> </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="链接">
            <el-input class="inputStyle" v-model="data.path"> </el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item>
            <el-button @click="formSubmit">提交</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  props: ["data"],
  computed: {},
  methods: {
    formSubmit() {
      this.$emit("news-submit");
    },
  },
  components: {},
  mounted() {},
};
</script>
<style scoped>
.inputStyle {
  width: 60%;
}
</style>
